package project9;

public class Circle {
    private double r;

    public Circle(double r) {
        this.r = r;
    }

    public Circle() {
    }

    public double getR() {
        return r;
    }
    public double S()
    {
        double s;
        s=3.14*r*r;
        return s;
    }
    public double C()
    {
        double c;
        c=3.14+2*r;
        return c;
    }

}
